//
//  SDChatMessage.h
//  SDChat
//
//  Created by Canny on 2018/10/29.
//  Copyright © 2018年 WK. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface SDChatMessage : NSObject

//content = "\U53d1\U9001\U6d88\U606f\U800c\U8bbe\U8ba1";
//"create_time" = 1542090765;
//from = 2;
//id = 62;
//"is_deleted" = 0;
//"modify_time" = 1542090765;
//"order_id" = 476;
//"order_sn" = otcsl201811131146410004637987;
//status = 1;
//to = 46;
//type = 1;

/**
 字符串    消息内容
 */
@property (nonatomic,strong)NSString *content;

/**
 消息id
 */
@property (nonatomic,strong)NSString *msgID;//id

/**
type    整型    @1:用户聊天,@2:系统消息
 */
@property (nonatomic,assign)NSUInteger type;

/**
 字符串    创建时间
 */
@property (nonatomic,strong)NSString *create_time;
@property (nonatomic,strong)NSString *status;
@property (nonatomic,strong)NSString *order_sn;
@property (nonatomic,strong)NSString *from;
@property (nonatomic,strong)NSString *to;
@property (nonatomic,strong)NSString *order_id;
/**
  0患者/1客服
 */
@property (nonatomic,copy)   NSString *sender;


/**
 客服名字
 */
@property (nonatomic,strong) NSString *staffName;


-(instancetype)initWithChatMessageDic:(NSDictionary *)dic;
+(instancetype)chatMessageWithDic:(NSDictionary *)dic;



@end
